<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!--导航-->
<nav class="navbar navbar-default navbar-fixed-top top-box">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <h1><a class="navbar-brand" href="#">
                T Z ’s blog
            </a></h1>
        </div>

        <div class="collapse navbar-collapse" >
            <ul class="nav navbar-nav navbar-right top-nav">
                <li class="active">
                    <a href="Index?type=getlist">
                        主页
                        <span class="sr-only">(current)</span>
                    </a>
                </li>
                <li>
                    <a href="admin.jsp">后台</a>
                </li>
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                        <img class="nav-user-photo" src="assets/images/avatars/user1.png" alt="Photo" />    <%=session.getAttribute("loginame") %> <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="Index?type=getlist2&keyword=<%=session.getAttribute("loginame") %>">个人主页</a></li>

                        <li><a href="Index?type=getlist1">注销</a></li>
                    </ul>
                </li>
                <li>
                    <a data-toggle="modal" data-target="#addBlogForm">写博客</a>
                </li>
                <li class="search_c"><a href="#">search <i class="glyphicon glyphicon-search"></i></a></li>
                <form>
                    <input type="text"  value=""  name="q"  class="form-control search" placeholder="请输入文章关键字或标题" >
                </form>
            </ul>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container -->
</nav>
<!--/ 导航-->
